import request from '@/utils/v2/request';
import { tansParams } from "@/utils/v2/ruoyi";
//自定义词库接口
class forbiddenWordAPI {
  //查询列表
  getWordList(params){
    return request.get('/police/word/list?'+ tansParams(params));
  }
  //导出列表
  exportWordList(params){
    return request.post('/police/word/export', params);
  }
  //查询单条
  getWordOne(id){
    return request.get('/police/word/'+ id);
  }
  //新增单条
  addWordOne(params){
    return request.post('/police/word/', params);
  }
  //修改单条
  updateWordOne(params){
    return request.put('/police/word/', params);
  }
  //删除单条
  deleteWordOne(ids){
    return request.delete('/police/word/' + ids);
  }
}
export const ForbiddenWordAPI = new forbiddenWordAPI();
